import { defineStore } from 'pinia';

export const useAppStore = defineStore('app', {
  state: () => ({
    companyName: '辰晓',
    companySlogan: '创新科技，连接未来',
    isMenuOpen: false,
  }),
  actions: {
    toggleMenu() {
      this.isMenuOpen = !this.isMenuOpen;
    },
    closeMenu() {
      this.isMenuOpen = false;
    },
  },
});